import http from '../service'
// 登录
export const aceLogin = (data = {}) => {
    return http.post({
        url: '/user/admin/login',
        data
    })
}
// 注册
export const aceRegister = (data = {}) => {
    return http.post({
        url: '/user/register',
        data
    })
}

// 获取用户列表
export const getUserList = (data = {}) => {
    return http.get({
        url: '/users/userList',
        params: { ...data }
    })
}

// 删除用户
export const deleteUser = (data = {}) => {
    return http.post({
        url: '/users/delete',
        data
    })
}

// 更新用户
export const updateUser = (data = {}) => {
    return http.post({
        url: '/users/update',
        data
    })
}

// 上传图片
export const uploadImage = '/mall-admin-web/file/uploadImages.do'
